package com.situ.stack;

public class Test {
	public static void main(String[] args) {
		HHStack stack = new HHStack();
		// 入栈
		stack.push("黄");
		stack.push("海");
		stack.push("学");
		stack.push("院");
		// 出栈
		while (true) {
			Object object = stack.pop();
			if (object != null) {
				System.out.println(object);
			} else {
				break;
			}
		}
	}
}
